package com.tudouji.project.pay.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.tudouji.framework.aspectj.lang.annotation.Excel;
import com.tudouji.framework.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 支付记录对象 payinfo_record
 *
 * @author tudouji
 * @date 2022-11-10
 */
public class PayinfoRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private String guid;

    /** 支付表ID */
    @Excel(name = "支付表ID")
    private String payguid;

    /** 支付金额 */
    @Excel(name = "支付金额")
    private BigDecimal amount;

    /** 已支付金额 */
    @Excel(name = "已支付金额")
    private BigDecimal preamount;

    /** 未支付金额 */
    @Excel(name = "未支付金额")
    private BigDecimal recamount;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdate;

    /** 是否收到发票:1 收到 或 2 未收到 */
    @Excel(name = "是否收到发票:1 收到 或 2 未收到")
    private Integer invoiceon;

    /** $column.columnComment */
    @Excel(name = "是否收到发票:1 收到 或 2 未收到")
    private String opertorid;

    /** 创建者 */
    @Excel(name = "创建者")
    private String createbyName;

    public void setGuid(String guid)
    {
        this.guid = guid;
    }

    public String getGuid()
    {
        return guid;
    }
    public void setPayguid(String payguid)
    {
        this.payguid = payguid;
    }

    public String getPayguid()
    {
        return payguid;
    }
    public void setAmount(BigDecimal amount)
    {
        this.amount = amount;
    }

    public BigDecimal getAmount()
    {
        return amount;
    }
    public void setPreamount(BigDecimal preamount)
    {
        this.preamount = preamount;
    }

    public BigDecimal getPreamount()
    {
        return preamount;
    }
    public void setRecamount(BigDecimal recamount)
    {
        this.recamount = recamount;
    }

    public BigDecimal getRecamount()
    {
        return recamount;
    }
    public void setCreatedate(Date createdate)
    {
        this.createdate = createdate;
    }

    public Date getCreatedate()
    {
        return createdate;
    }
    public void setInvoiceon(Integer invoiceon)
    {
        this.invoiceon = invoiceon;
    }

    public Integer getInvoiceon()
    {
        return invoiceon;
    }
    public void setOpertorid(String opertorid)
    {
        this.opertorid = opertorid;
    }

    public String getOpertorid()
    {
        return opertorid;
    }
    public void setCreatebyName(String createbyName)
    {
        this.createbyName = createbyName;
    }

    public String getCreatebyName()
    {
        return createbyName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("guid", getGuid())
            .append("payguid", getPayguid())
            .append("amount", getAmount())
            .append("preamount", getPreamount())
            .append("recamount", getRecamount())
            .append("createdate", getCreatedate())
            .append("invoiceon", getInvoiceon())
            .append("opertorid", getOpertorid())
            .append("createBy", getCreateBy())
            .append("createbyName", getCreatebyName())
            .toString();
    }
}
